<!-- 表单修改 -->

<template>
  <WebForm :disabled="!one.id" class="half" word2>
    <FormInput label="名称" bind="deviceTypeName" :max="20" required />

    <FormInput label="编码" bind="deviceTypeCode" :max="50" required />

    <FormTree label="上级" bind="parentId" :dict="$root.product_type_treeDict" allName disabled />

    <FormNum label="排序" bind="sortValue" :min="1" :max="99999" tip="请输入" half required />

    <FormTextarea label="备注" bind="description" />

    <FormStatus bind="enable" isRadio />

    <EditButton />
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'FormEdit',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('@admin/views/System/Dict/DictData/FormEdit', true, /vue$/)),
}
</script>
